<?php

namespace App\Admin\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ConfigOptionRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        $rules = [
            'type' => 'required',
            'options' => 'nullable',
            'scene' => 'required',
        ];

        return $rules;
    }

    public function attributes()
    {
        return [
            'type' => '类型',
            'options' => '选项',
        ];
    }
}
